package com.goodwill.androidtest.notifyItem.adapter;


import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.goodwill.androidtest.R;

import java.util.List;

public class BRVAHTestRvAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public BRVAHTestRvAdapter() {
        super(R.layout.item_brvah_test_layout);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, String item) {
        helper.setText(R.id.tv_content, item);
    }

//    @Override
//    protected void convertPayloads(@NonNull BaseViewHolder helper, String item, @NonNull List<Object> payloads) {
//        super.convertPayloads(helper, item, payloads);
//        if (payloads.size() == 0) {
//            convert(helper, item);
//            return;
//        }
//        String newItem = (String) payloads.get(0);
//        helper.setText(R.id.tv_content, newItem);
//    }
}
